const ExcelJS = require('exceljs');

module.exports = async function (params) {
    const workbook = new ExcelJS.Workbook();
    const worksheet = workbook.addWorksheet('My Sheet');
    // 添加标题行
    worksheet.addRow(['ID', 'Name', 'Email']);
    // 添加一些数据
    worksheet.addRow([1, 'John Doe', 'john@example.com']);
    //返回workbook
    return workbook;
};